/*银行账号*/
Ext.apply(Ext.form.field.VTypes, {
	bank: function(v, field) {
        return /^\d+$/.test(v);
    },
    bankText: '输入格式不正确.'
});

/*国内电话*/
Ext.apply(Ext.form.field.VTypes, {
	phone: function(v, field) {
        return /^(\d{3}-|\d{4}-)?(\d{8}|\d{7})?$/.test(v);
    },
    phoneText: '输入格式不正确.'
});

/*价格*/
Ext.apply(Ext.form.field.VTypes, {
	price: function(v, field) {
        return /^\d{0,8}\.{0,1}(\d{1,2})?$/.test(v);
    },
    priceText: '输入格式不正确.'
});

/*经销商编号*/
Ext.apply(Ext.form.field.VTypes, {
	distcode: function(v, field) {
        return /^[\w\d]{6}$/.test(v);
    },
    distcodeText: '输入6位有效数字.'
});